# -*- coding: utf-8 -*-
"""
项目主文件信息：
- 源信息: MCSAP (我的世界语言包本地化系统)
- 编码格式: UTF-8
- 运行环境: Python 3.13+
- 系统要求: Windows
- 版本号: v1.0.0
"""

import logging

logging.basicConfig(
    filename = 'log.log',
    filemode='w',
    encoding='utf-8',
    level=logging.INFO,
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)

def _test_api():
    from translate_module import Baidufanyi
    appid = ''
    apikey = ''
    apitest = Baidufanyi(appid, apikey, 'hello')
    data = apitest.get_response()
    print(data)

def _test_database():
    from filetools import database
    db = database.Database()
    a = db.read_data('hello')
    print(a)

def flow():
    pass

if __name__ == "__main__":
    # _test_api()
    _test_database()